package com.example.juc.big_talk_concurrent.chapter2.article6;

public class Test1 {
    /**
     * 开启 77ms
     * 关闭 105ms
     * @param args
     */
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000000; i ++) {
            test("ab", "cd", "ef");
        }
        System.out.println("用时: " + (System.currentTimeMillis() - start) + " ms");
    }

    public static String test(String s1, String s2, String s3) {
        StringBuffer res = new StringBuffer();
        res.append(s1);
        res.append(s2);
        res.append(s3);
        return res.toString();
    }

}
